extends "../cTDP_5/cTDP_5.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "萨满王"
	lv = 3
	attCoe.atk = 20 / 8.5 * 2 / 3
	attCoe.maxHp = 900 / 112.5 / 3
	addCdSkill("smw",11)
	addCdSkill("smw1",13)
	
	addSkillTxt("闪电图腾：优先身边召唤一个闪电图腾[cd:11秒]")
	addSkillTxt("火焰图腾：优先身边召唤一个火焰图腾[cd:13秒]")


func _castCdSkill(id):
	._castCdSkill(id)
	if id == "smw":
		cst("闪电图腾","000000",position)
		sumtotem("2")
	if id == "smw1":
		cst("火焰图腾","000000",position)	
		sumtotem("3")


func sumtotem(strs:String = "1"):
	var ids = "cex___Hide_totem" + strs
	var ncha = newChara(ids,self.cell)
	if !ncha:
		var cells = utils.getAllyCells(team)
		for i in cells:
			ncha = newChara(ids,i)
			if ncha:break
	if ncha:
		var tmp = 0.55
		if self.lv == 4:tmp = 0.6
		ncha.attInfo.maxHp += att.maxHp * tmp
		ncha.upAtt()
		ncha.plusHp(ncha.att.maxHp)
		ncha.addBuff(boom.new(1))